package com.example.module_main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_main.R
import com.example.module_main.entity.HomeEntityItem
import com.example.module_main.entity.ServiceEntityItem


class ServiceAdapter: BaseQuickAdapter<ServiceEntityItem, BaseViewHolder>(R.layout.layout_service_item)  {
    override fun convert(holder: BaseViewHolder, item: ServiceEntityItem) {
        holder.setText(R.id.service_item_title,item.title)
        holder.setImageResource(R.id.service_item_img,item.img)
    }
}
